import { ConfigPlugin, withInfoPlist } from '@expo/config-plugins';

const withAmap: ConfigPlugin<{
  iosKey: string;
}> = (config, { iosKey }) => {
  return withInfoPlist(config, config => {
    config.modResults.AMapApiKey = iosKey;
    return config;
  });
};

export default withAmap; 